package com.itheima.mapper;

import com.itheima.entity.ProjectReview;
import com.itheima.pojo.po.IndexVisualizationPo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * 项目审核进度Mapper接口
 * 
 * @author guanhuaer
 * @date 2025-03-18
 */
@Mapper
public interface ProjectReviewMapper 
{
    /**
     * 查询项目审核进度
     * 
     * @param id 项目审核进度主键
     * @return 项目审核进度
     */
    public ProjectReview selectProjectReviewById(Long id);

    /**
     * 查询项目审核进度列表
     * 
     * @param projectReview 项目审核进度
     * @return 项目审核进度集合
     */
    public List<ProjectReview> selectProjectReviewList(ProjectReview projectReview);

    /**
     * 新增项目审核进度
     * 
     * @param projectReview 项目审核进度
     * @return 结果
     */
    public int insertProjectReview(ProjectReview projectReview);

    /**
     * 修改项目审核进度
     * 
     * @param projectReview 项目审核进度
     * @return 结果
     */
    public int updateProjectReview(ProjectReview projectReview);

    /**
     * 删除项目审核进度
     * 
     * @param id 项目审核进度主键
     * @return 结果
     */
    public int deleteProjectReviewById(Long id);

    /**
     * 批量删除项目审核进度
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteProjectReviewByIds(Long[] ids);

    ProjectReview selectReviewList(Long projectId);

    void updateProjectAuditReview(ProjectReview review);

    /**
     * 查询项目进度基本信息
     * @return
     */
    IndexVisualizationPo selectBaseInfo();

    List<ProjectReview> selectProjectIdsList(Integer[] projectIds);

    List<Integer> selectIdsByUsername(String username);

    IndexVisualizationPo selectTeacherInfo(Integer userId);
}
